<!--
/**
 * 审批流程实例 列表页 JS 脚本
 * @author 李方捷 , leefangjie@qq.com
 * @since 2023-06-05 14:41:28
 */
 -->
 <!DOCTYPE html>
<html>

<head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta charset="utf-8"/>
    <meta name="referrer" content="no-referrer">
    <title th:text="${lang.translate('审批流程实例')}">审批流程实例</title>
    <link th:if(theme.ico!="null") rel="shortcut icon" th:href="${theme.ico}" type="image/vnd.microsoft.icon">
    <link th:if(theme.ico!="null") rel="icon" th:href="${theme.ico}" type="image/vnd.microsoft.icon">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="/assets/libs/layui/css/layui.css" th:href="'/assets/libs/layui/css/layui.css?'+${cacheKey}"/>
    <link rel="stylesheet" href="/assets/css/admin.css" th:href="'/assets/css/admin.css?'+${cacheKey}"/>
    <link rel="stylesheet" href="/assets/libs/toast/css/toast.css" type="text/css" th:href="'/assets/libs/toast/css/toast.css?'+${cacheKey}">
    <link rel="stylesheet" href="/assets/css/foxnic-web.css" th:href="'/assets/css/foxnic-web.css?'+${cacheKey}">
    <link href="/assets/libs/font-awesome-4.7.0/css/font-awesome.min.css" rel="stylesheet"/>
    <link href="/assets/libs/material-design-webfont/css/material-design-icons-min.css" rel="stylesheet">
    <script th:inline="javascript">var foxnic_cachekey=[[${cacheKey}]];</script>
    <style>
    </style>
    <link th:each="css:${theme.css}" rel="stylesheet" th:href="${css}+'?'+${cacheKey}">
</head>

<body style="overflow-y: hidden">

<div class="layui-card">

    <div class="layui-card-body" style="">

        <div class="search-bar" style="">

            <div class="search-input-rows" style="opacity: 0">
                <!-- 搜索输入区域 -->
                <div class="layui-form toolbar search-inputs">
                    <!-- 主键 , id ,typeName=text_input, isHideInSearch=true -->
                    <!-- 流程实例ID , processInstanceId ,typeName=text_input, isHideInSearch=true -->
                    <!-- 是否交底 , isGotBase ,typeName=logic_switch, isHideInSearch=true -->
                    <!-- 继续 , noBaseContinue ,typeName=logic_switch, isHideInSearch=true -->
                    <!-- 事务所能否完成 , canOfficeDone ,typeName=logic_switch, isHideInSearch=true -->
                    <!-- 材料是否完整 , isMaterialComplete ,typeName=logic_switch, isHideInSearch=true -->
                    <!-- 代理能否完成 , canAgentDone ,typeName=logic_switch, isHideInSearch=true -->
                    <!-- 是否定稿 , finalized ,typeName=logic_switch, isHideInSearch=true -->
                    <!-- 类型 , subtype ,typeName=radio_box, isHideInSearch=false -->
                    <div class="search-unit">
                        <div class="search-label-div" style=""><span th:text="${lang.translate('类型')}" class="search-label subtype-label">类型</span><span class="search-colon">:</span></div>


                        <div id="subtype" th:data="${enum.toArray('com.foxnicweb.app.constants.enums.patent.PatentSubType')}" style="width:140px"></div>
                    </div>
                    <!-- 下一步骤 , retrieval ,typeName=logic_switch, isHideInSearch=true -->
                    <!-- 审批状态 , processStatus ,typeName=text_input, isHideInSearch=true -->
                    <!-- 待审节点 , currNodes ,typeName=text_input, isHideInSearch=true -->
                    <!-- 节点始于 , currNodesTime ,typeName=text_input, isHideInSearch=true -->
                    <!-- 外协对接人 , outPersonIds ,typeName=button, isHideInSearch=true -->
                    <!-- 客户 , customerName ,typeName=text_input, isHideInSearch=false -->
                    <div class="search-unit">
                        <div class="search-label-div" style=""><span th:text="${lang.translate('客户')}" class="search-label customerName-label">客户</span><span class="search-colon">:</span></div>
                        <input id="customerName" class="layui-input search-input" style="width: 120px" type="text" />
                    </div>
                    <!-- 案件代理人 , caseAgentIds ,typeName=button, isHideInSearch=false -->
                    <div class="search-unit">
                        <div class="search-label-div" style="width:90px"><span th:text="${lang.translate('案件代理人')}" class="search-label caseAgentIds-label">案件代理人</span><span class="search-colon">:</span></div>
                            <input lay-filter="caseAgentIds" id="caseAgentIds" name="caseAgentIds"  type="hidden" class="layui-input"   />
                            <button id="caseAgentIds-button" type="button" action-type="emp-dialog" class="layui-btn layui-btn-primary   " style="width: 140px"> <i class='layui-icon layui-icon-search'></i> <span th:text="${lang.translate('请选择人员')}" th:default-label="${lang.translate('请选择人员')}">按钮文本</span></button>
                    </div>
                    <!-- 商务助理 , businessAssistantIds ,typeName=button, isHideInSearch=false -->
                    <div class="search-unit">
                        <div class="search-label-div" style=""><span th:text="${lang.translate('商务助理')}" class="search-label businessAssistantIds-label">商务助理</span><span class="search-colon">:</span></div>
                            <input lay-filter="businessAssistantIds" id="businessAssistantIds" name="businessAssistantIds"  type="hidden" class="layui-input"   />
                            <button id="businessAssistantIds-button" type="button" action-type="emp-dialog" class="layui-btn layui-btn-primary   " style="width: 140px"> <i class='layui-icon layui-icon-search'></i> <span th:text="${lang.translate('请选择人员')}" th:default-label="${lang.translate('请选择人员')}">按钮文本</span></button>
                    </div>


                </div>
                <!-- 搜索输入区域 -->
                <div class="layui-form toolbar search-inputs">
                    <!-- 名称 , title ,typeName=text_input, isHideInSearch=false -->
                    <div class="search-unit">
                        <div class="search-label-div" style=""><span th:text="${lang.translate('名称')}" class="search-label title-label">名称</span><span class="search-colon">:</span></div>
                        <input id="title" class="layui-input search-input" style="width: 140px" type="text" />
                    </div>
                    <!-- 编号 , serial ,typeName=text_input, isHideInSearch=false -->
                    <div class="search-unit">
                        <div class="search-label-div" style=""><span th:text="${lang.translate('编号')}" class="search-label serial-label">编号</span><span class="search-colon">:</span></div>
                        <input id="serial" class="layui-input search-input" style="width: 120px" type="text" />
                    </div>
                    <!-- 专利状态 , status ,typeName=select_box, isHideInSearch=false -->
                    <div class="search-unit">
                        <div class="search-label-div" style="width:90px"><span th:text="${lang.translate('专利状态')}" class="search-label status-label">专利状态</span><span class="search-colon">:</span></div>
                        <div id="status" th:data="${enum.toArray('com.foxnicweb.app.constants.enums.patent.PatentProcessStatus')}" style="width:140px" extraParam="{}"></div>
                    </div>


                </div>
            </div>


            <!-- 按钮区域 -->
            <div id="search-area" class="layui-form toolbar search-buttons" style="opacity: 0">
                <button id="search-button" class="layui-btn icon-btn"><i class="layui-icon">&#xe615;</i>&nbsp;&nbsp;<span th:text="${lang.translate('搜索','','cmp:table.search')}">搜索</span></button>
            </div>
        </div>

        <div id="table-area" style="margin-top: 84px ">
            <table class="layui-table" id="data-table" lay-filter="data-table"></table>
        </div>

    </div>
</div>

<script type="text/javascript" src="/module/global.js" th:src="'/module/global.js?'+${cacheKey}"></script>
<script type="text/javascript" src="/assets/libs/jquery-3.2.1.min.js" th:src="'/assets/libs/jquery-3.2.1.min.js?'+${cacheKey}"></script>
<script type="text/javascript" src="/assets/libs/pandyle.min.js" th:src="'/assets/libs/pandyle.min.js?'+${cacheKey}"></script>
<script type="text/javascript" src="/assets/libs/layui/layui.js" th:src="'/assets/libs/layui/layui.js?'+${cacheKey}"></script>
<script type="text/javascript" src="/assets/libs/toast/js/toast.js" th:src="'/assets/libs/toast/js/toast.js?'+${cacheKey}"></script>
<!-- 表格工具栏 -->
<script type="text/html" id="toolbarTemplate">
    <div class="layui-btn-container">
    </div>
</script>

<!-- 表格操作列 -->
<script type="text/html" id="tableOperationTemplate">

    <button th:if="${perm.checkAnyAuth('pat_patent_process:update','pat_patent_process:save')}" class="layui-btn layui-btn-primary layui-btn-xs ops-edit-button " lay-event="edit"data-id="{{d.id}}"><span th:text="${lang.translate('打开','','cmp:table.ops')}">打开</span></button>


    <button th:if="${perm.checkAuth('pat_patent_process:delete')}" class="layui-btn layui-btn-xs layui-btn-danger ops-delete-button " lay-event="del" data-id="{{d.id}}"><span th:text="${lang.translate('废弃','','cmp:table.ops')}">废弃</span></button>


</script>

<!-- 表格状态列 -->
<script type="text/html" id="cell-tpl-isGotBase">
    <input type="checkbox" class="switch-isGotBase list-checkbox" lay-filter="cell-tpl-isGotBase" value="{{d.id}}" lay-skin="switch" lay-text="已交|未交&nbsp;"  {{d.isGotBase==1?'checked':''}} data-id="{{d.id}}"/>
</script>
<script type="text/html" id="cell-tpl-canOfficeDone">
    <input type="checkbox" class="switch-canOfficeDone list-checkbox" lay-filter="cell-tpl-canOfficeDone" value="{{d.id}}" lay-skin="switch" lay-text="可以|不能&nbsp;"  {{d.canOfficeDone==1?'checked':''}} data-id="{{d.id}}"/>
</script>
<script type="text/html" id="cell-tpl-isMaterialComplete">
    <input type="checkbox" class="switch-isMaterialComplete list-checkbox" lay-filter="cell-tpl-isMaterialComplete" value="{{d.id}}" lay-skin="switch" lay-text="完整|缺失&nbsp;"  {{d.isMaterialComplete==1?'checked':''}} data-id="{{d.id}}"/>
</script>
<script type="text/html" id="cell-tpl-canAgentDone">
    <input type="checkbox" class="switch-canAgentDone list-checkbox" lay-filter="cell-tpl-canAgentDone" value="{{d.id}}" lay-skin="switch" lay-text="可以|不能&nbsp;"  {{d.canAgentDone==1?'checked':''}} data-id="{{d.id}}"/>
</script>
<script type="text/html" id="cell-tpl-finalized">
    <input type="checkbox" class="switch-finalized list-checkbox" lay-filter="cell-tpl-finalized" value="{{d.id}}" lay-skin="switch" lay-text="定稿|待定&nbsp;"  {{d.finalized==1?'checked':''}} data-id="{{d.id}}"/>
</script>
<script type="text/html" id="cell-tpl-noBaseContinue">
    <input type="checkbox" class="switch-noBaseContinue list-checkbox" lay-filter="cell-tpl-noBaseContinue" value="{{d.id}}" lay-skin="switch" lay-text="继续|终止&nbsp;"  {{d.noBaseContinue==1?'checked':''}} data-id="{{d.id}}"/>
</script>
<script type="text/html" id="cell-tpl-retrieval">
    <input type="checkbox" class="switch-retrieval list-checkbox" lay-filter="cell-tpl-retrieval" value="{{d.id}}" lay-skin="switch" lay-text="检索|撰稿&nbsp;"  {{d.retrieval==1?'checked':''}} data-id="{{d.id}}"/>
</script>

<script th:inline="javascript">
    var LAYUI_TABLE_WIDTH_CONFIG = [[${pageHelper.getTableColumnWidthConfig('data-table')}]];
    var SELECT_STATUS_DATA = [[${enum.toArray('com.foxnicweb.app.constants.enums.patent.PatentProcessStatus')}]];
    var RADIO_SUBTYPE_DATA = [[${enum.toArray('com.foxnicweb.app.constants.enums.patent.PatentSubType')}]];
    var AUTH_PREFIX="pat_patent_process";


</script>

<script th:src="'/business/patent/patent_process/patent_process_ext.js?'+${cacheKey}"></script>
<script th:src="'/business/patent/patent_process/patent_process_list.js?'+${cacheKey}"></script>

</body>
</html>